package com.leyou.user.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.leyou.common.constants.RegexPatterns;
import com.leyou.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author 14281
 */
@TableName("tb_user_address")
@Data
@EqualsAndHashCode(callSuper = false)
public class UserAddress extends BaseEntity {
    @TableId
    private Long id;
    private Long userId;
    // 收件人姓名
    private String addressee;
    // 电话
    private String phone;
    // 省份
    private String province;
    // 城市
    private String city;
    // 区
    private String district;
    // 街道地址
    private String street;
    // 邮编
    private String  postcode;
    private Boolean isDefault;
}